package org.example.shop;

public class Main {
    public static void main(String[] args) {
        ManagerMenu me = new ManagerMenu();
        CustomerMenu cm = new CustomerMenu();
        MainMenu mm = new MainMenu();                                                            //  创建对象
        Manager m = new Manager("admin", "ynuinfo#777");

        Customer c1 = new Customer("12345", "zhang", "golden",
                "2024", 10000.0, "12345678910", "@qq", "Aab12345?");
        Customer c2 = new Customer();
        Customer c3 = new Customer("56789", "cheng", "silver",
                "2020", 20000.0, "99999999999", "@com", "Aab12345!");
        cm.customerMap.put(c1.getCustomerName(), c1);
        cm.customerMap.put(c3.getCustomerName(), c3);
        cm.IDMap.put(c1.getCustomerID(), c1);
        cm.IDMap.put(c3.getCustomerID(), c3);
        Goods g1 = new Goods("001", "水", "农夫山泉", "2024", "xxxx", 5.0, 10.0, 5);
        Goods g2 = new Goods("002", "饮料", "ww", "2023", "yyyy", 20.0, 40.0, 100);
        Goods g3 = new Goods();
        me.goodsMap.put(g1.getGoodsName(), g1);
        me.goodsMap.put(g2.getGoodsName(), g2);

        mm.menu(me, m, c2, cm, cm.customerMap, cm.IDMap);//菜单界面
    }
}
